package com.CST.service.ys;

import com.CST.dto.ys.YsBusinessBudgetDTO;
import com.CST.dto.ys.YsBusinessBudgetDataDTO;
import com.CST.dto.ys.YsBudgetUpDataDTO;
import com.CST.entity.ys.YsBusinessBudgetData;
import com.CST.vo.ys.YsBudgetDataVO;
import com.CST.vo.ys.YsBusinessBudgetDataVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qtx
 * @since 2023-05-22
 */
public interface YsBusinessBudgetDataService extends IService<YsBusinessBudgetData> {

    /**
     * 编辑
     * @param dataDTO 编辑数据
     * @return true or false
     */
    boolean updateYsBusinessBudgetData(YsBudgetUpDataDTO dataDTO);

    /**
     * 导入数据
     *
     * @param file 文件
     */
    Boolean importExcelYsBusinessBudgetData(MultipartFile file,Integer year);

    /**
     * 导出数据
     *
     * @param response response
     * @param year 年
     */
    void exportExcelYsBusinessBudgetData(HttpServletResponse response, Integer year);

    /**
     * 导出模板
     *
     * @param response response
     */
    void exportExcelYsBusinessBudgetDataDemo(HttpServletResponse response);

    /**
     * 分页查询
     * @param dto 条件
     * @return 分页集合
     */
    PageInfo<YsBusinessBudgetDataVO> getBusinessDataList(YsBusinessBudgetDataDTO dto);
}
